<?php
/**
 * Created by PhpStorm.
 * User: cyy
 * Date: 2016/11/24
 * Time: 17:03
 */
namespace Home\Model;
use Think\Model;
class UserModel extends Model
{
      protected $tablePrefix = "ny_";
      protected $tableName = 'user';
//      protected $dbName = 'newyear2017';
      protected $connection = 'newyear';
      protected $fields = array('id', 'email', 'user_name', 'user_turename',
            '_type'=>array('id'=>'bigint','email'=>'varchar','user_name'=>'varchar','user_turename'=>'varchar'));
}

